#include "binary.hpp"
#include "tools.hpp"
#include <algorithm>
#include <cstdio>

int main()
{
    auto& ansi = lxj::OpenANSI::instance();
    ansi.set_mode(1).set_color(76);
    lxj::Time time;
    auto&     random = lxj::Random<int>::instance();

    std::vector<int> cnts(10);
    std::vector<int> poisons(10);
    int              times = 3;
    for (int i = 0; i < times; i++) {
        std::transform(cnts.begin(), cnts.end(), cnts.begin(), [&random](int x) {
            return x + random(50, 70);
        });
        std::transform(poisons.begin(), poisons.end(), poisons.begin(), [&random](int x) {
            return x + random(10, 20);
        });
        int ans1 = lxj::cutOrPoison(cnts, poisons, random(200, 300));
        std::printf("%d  ", ans1);
    }

    std::puts("");
    return 0;
}